var form;
var $;
var table;
var layer;
layui.use(['form','jquery','table','layer'],function(){
    form=layui.form;
    $=layui.$;
    table=layui.table;
    layer=layui.layer;
});
$.ajax({
    url:'/Coupons/aaa',
    dataType:'json',
    data:{"couponId":('#couponId',window.parent.document).val},
    success:function(data){
        data=data.data;
        $('input[name=couponCode]').val(data[0].couponCode);
        $('input[name=couponName]').val(data[0].couponName);
        $('input[name=startDate]').val(data[0].startDate);
        $('input[name=endDate]').val(data[0].endDate);
        $('input[name=online]').val(data[0].online);
        $('input[name=mode]').val(data[0].mode);
        $('input[name=surplus]').val(data[0].surplus);
        //$('input[name=]').val(data[0].);
    }
})